home *** CD-ROM | disk | FTP | other *** search
- Path: tst.hk.super.net!usenet
- From: Judy Wong <jlcwong@hk.super.net>
- Newsgroups: comp.lang.c++
- Subject: Abend caused by "strcmp"
- Date: 24 Jan 1996 05:43:40 GMT
- Organization: Hong Kong SuperNET
- Message-ID: <4e4guc$o1u@tst.hk.super.net>
- NNTP-Posting-Host: annex5-32.hk.super.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
-
-
- I am using Borland C++ v4.0 & v4.5. My machine is Intel Pentium 100.
- The program I wrote is a window program.
-
- In v4.5, when my program executes the statement :
-
- "if (strcmp(a, NULL) == 0) ..." where a is declared as
- char *a="name";
-
- it abends with the following 'Unhandled Exception' error msg. :
-
- General Protection Exception
- BC450RTL(1) 0x41A7:0x61c9 Processor Fault
-
- I used v4.0 & test the program once again. The above msg. appeared
- again. If the statement is changed into :
-
- "if (strcmp(a, "") == 0) ..."
-
- the program runs smoothly in either v4.0 & v4.5
-
- In those days before my upgrade to Pentium, I used Intel 386 & v4.0.
- using "strcmp" comparing with NULL was OK.
-
- Is this hardware problem ? Or any other reasons ?
-
- Thanks you for you help.
-
- Regards,
- Samson
-
-
-
-